import * as Cesium from 'cesium';
import RadarMaterialProperty from './material/RadarMaterialProperty';

export default class RadarLight {
  constructor(viewer) {
    //设置雷达材质
    this.radarMaterialProperty = new RadarMaterialProperty(
      'radarMaterialProperty'
    );
    this.entity = viewer.entities.add({
      rectangle: {
        coordinates: Cesium.Rectangle.fromDegrees(
          113.3291,
          23.099,
          113.3391,
          23.109
        ),
        material: this.radarMaterialProperty,
      },
    });
  }
}
